package com.test;

import java.util.ArrayList;

public class arrlist {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        list.add("aaa");
        list.add("bbb");
        System.out.println(list);
        list.remove(0);
        System.out.println(list);
        list.add(0,"bbb");
        System.out.println(list);
    }
}
